package com.lx;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 段誉
 * @create 2019-05-18 14:16
 */
@RestController
@RequestMapping("test")
public class TestController {
  private Logger log = LoggerFactory.getLogger(TestController.class);
  @GetMapping
  public String index() {
    log.debug("Logger level DEBUG");
    log.info("Logger level INFO");
    log.warn("Logger level WARN");
    log.error("Logger level ERROR");
    return "test";
  }
}
